package czopyk.model.persistence.actions;

import czopyk.model.persistence.ValueExtractor;
import czopyk.model.structure.Modulator;

public class ChangeUsersCountAction extends CommonAction implements Action {

	private final String value;
	
	public ChangeUsersCountAction(String value, Modulator mod, ValueExtractor ve) {
		super(mod, ve);
		this.value = value;
	}
	
	public void perform() {
		mod.setUsersCount((int) Double.parseDouble(ve.getValue(value)));
	}
	
}
